package com.luyi.consumer.myrule;

import com.netflix.loadbalancer.IRule;
import com.netflix.loadbalancer.RandomRule;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author 卢意
 * @create 2020-10-24 15:38
 */
@Configuration
public class MySelfRule {
	@Bean
	public IRule myRule(){
		return new RandomRule(); //定义规则为随机
	}
}
